package admission.ecnu.object;

import admission.ecnu.dao.classInfoDao;

public class OClassInfo {
	private String classId = null;
	private String grade = null;
	private String curriculum = null;
	private String type = null;
	private String teacher = null;
	private String classTime = null;
	private String classroom = null;
	private String studentNum = null;
	private String isExam = null;
	private String classroomCapacity = null;
	
	

	public OClassInfo(){}
	
	public OClassInfo(String classId,String grade, String curriculum, String type,
			String teacher, String classTime, String classroom,
			String studentNum, String isExam, String classroomCapacity) {
		super();
		this.classId = classId;
		this.grade = grade;
		this.curriculum = curriculum;
		this.type = type;
		this.teacher = teacher;
		this.classTime = classTime;
		this.classroom = classroom;
		this.studentNum = studentNum;
		this.isExam = isExam;
		this.classroomCapacity = classroomCapacity;
	}
	@Override
	public String toString(){
		return "["+
				"classId:"+this.getClassId()+","+
				"grade:"+this.getGrade()+","+
				"curriculum:"+this.getCurriculum()+","+
				"type:"+this.getType()+","+
				"teacher:"+this.getTeacher()+","+
				"time:"+this.getClassTime()+","+
				"classroom:"+this.getClassroom()+","+
				"studentNum:"+this.getStudentNum()+","+
				"isExam:"+this.getIsExam()+","+
				"classroomCapacity"+this.getClassroomCapacity()+"]";
	}

	public String getClassroomCapacity() {
		return classroomCapacity;
	}

	public void setClassroomCapacity(String classroomCapacity) {
		this.classroomCapacity = classroomCapacity;
	}
	
	public String getClassId() {
		return classId;
	}

	public void setClassId(String classId) {
		this.classId = classId;
	}

	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public String getCurriculum() {
		return curriculum;
	}

	public void setCurriculum(String curriculum) {
		this.curriculum = curriculum;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTeacher() {
		return teacher;
	}

	public void setTeacher(String teacher) {
		this.teacher = teacher;
	}

	public String getClassTime() {
		return classTime;
	}

	public void setClassTime(String classTime) {
		this.classTime = classTime;
	}

	public String getClassroom() {
		return classroom;
	}

	public void setClassroom(String classroom) {
		this.classroom = classroom;
	}

	public String getStudentNum() {
		return studentNum;
	}

	public void setStudentNum(String studentNum) {
		this.studentNum = studentNum;
	}

	public String getIsExam() {
		return isExam;
	}

	public void setIsExam(String isExam) {
		this.isExam = isExam;
	}
	
	public static OClassInfo getClassObjFromDdById(String course_id){
		return new classInfoDao().classSelectById(course_id);
	}
}
